import api from '../index'

export default {
  // 保存条目
  createOrUpdate: (data: any) => api.post('/v1/transBillItemCreateOrUpdate', data),
  page: (data: any) => api.get('/v1/transBill/page', { params: data }),
  list: (data: any) => api.get('/v1/transBill/list', { params: data }),
  delBatch: (data: any) => api.delete('/v1/transBill/batchByIds', { data }),
  del: (id: any) => api.delete(`/v1/transBill/${id}`),
  billAndOrdersBySn: (id: any) => api.get(`/v1/transBillAndOrder/${id}`),
  batchBill: (data: any) => api.post('/v1/batchBill', data),
}
